#
# Be sure to run `pod lib lint CubeCores.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'CubeCore'
  s.version          = '0.1.9'
  s.summary          = 'iOS基础代码，核心组件库'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

#   s.description      = <<-DESC
# TODO: Add long description of the pod here.
#                        DESC

  s.homepage         = 'https://gitee.com/kity_peng'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'pp' => 'peng163199184@163.com' }
  s.source           = { :git => 'https://gitee.com/kity_peng/CubeCore.git', :tag => s.version.to_s, :submodules => true }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

  # s.source_files = 'CubeCore/**/*'
  
  s.subspec 'Unit' do |ss|

    # ss.public_header_files = 'CubeCore/Unit/**/*.h'
    ss.source_files = 'CubeCore/Unit/**/*.{h,m}'

  end

  s.subspec 'UIKit' do |ss|

    ss.dependency     'MBProgressHUD', '~> 1.1.0'

    # ss.public_header_files = 'CubeCore/UIKit/*.h'
    ss.source_files = 'CubeCore/UIKit/*.{h,m}'

  end

  s.subspec 'PKNetwork' do |ss|

    ss.dependency    'AFNetworking', '~> 3.1.0'
    ss.dependency    'YYModel', '~> 1.0.4'

    # ss.public_header_files = 'CubeCore/Network/*.h'
    ss.source_files = 'CubeCore/PKNetwork/*.{h,m}'

  end
  
  s.subspec 'PKTableView' do |ss|
      
      # ss.public_header_files = 'CubeCore/PKTableView/**/*.h'
      ss.source_files = 'CubeCore/PKTableView/**/*.{h,m}'
      
  end
  # s.resource_bundles = {
  #   'CubeCores' => ['CubeCores/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
